package cn.sinjet.sinjetui.data;

import android.os.Bundle;
import android.view.View;

public class PropBase {
     int visible = -1;
     public void storeProperty(Bundle data){
    	 int newVisible = data.getInt("visible",-1); 
    	 if(newVisible != -1)//it has visible
    	 this.visible =  newVisible;
     }
     
     public void restoreProperty(View v){
    	 if(visible == -1)
    		 return;
    	 if(visible == 2) v.setVisibility(View.GONE); 
    	 else v.setVisibility(visible==1?View.VISIBLE:View.INVISIBLE);
     }
     
}
